import request from '@/utils/request';

export const getSuggetsAPI = (q: string) => {
  return request({ url: '/v1_0/suggestion', params: { q } });
};

export const getResultsAPI = (q: string, page?: number) => {
  return request({ url: '/v1_0/search', params: { q, page } });
};
